The size of your module-level code exceeds QBasic's internal limit. Try moving some of the code into SUB or FUNCTION procedures.